<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/jsp/inc/header.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <script src="${STATIC_HOST}/js/common-1.7.js" type="text/javascript"></script>
</head>
<body>
<script>
//    document.domain= "21cn.com";
    function pictureFetch(postString,title, memo, target){
        var status = getQueryString("status");
        var url = "${STATIC_HOST}/pictureFetch.do";
        if(status==1){
            url = url+"?status="+status;
            console.log(url);
        }
        $.ajax({
            type: "POST",
            url: url,
            dataType: "json",
            data: {url:postString,title:title,memo:memo},
            success: function(jsonData){
                // console.log(jsonData);
                parent.window.afterFetchImg(jsonData, target);
            }
        });
    }

    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
        var r = window.location.search.substr(1).match(reg);
        if (r!=null) return (r[2]); return null;
    }
</script>
</body>
</html>
